home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperTalk / Turbo Pascal XCMD ƒ / ResEdit walkthru < prev    next >
Encoding:
Text File  |  1988-08-31  |  2.0 KB  |  40 lines  |  [TEXT/TPAS]

  1.              A QUICK GUIDE TO RESEDIT  
  2.       (not intended as a substitute for the ResEdit instructions)
  3.  
  4. Macintosh applications rely on resources for any information that isn't
  5. hard coded in the program itself.  For example, the dialog boxes that an
  6. application uses are usually stored as resources, so that they can be 
  7. changed easily, without recompiling the program.  A resource is identified
  8. by a type, which is four characters long, an ID, which is an integer, and a
  9. name, which is a string.  Note, however, that there can only be one 
  10. resource with a given type and ID.
  11.  
  12. ResEdit is a tool for moving,copying,deleting, and altering resources. Once
  13. it is launched, windows will appear, one for each volume inserted.  To eject
  14. a disk, click in the close box for its window.  These window operate
  15. in a similar way to the usual "Open" dialog in most applications.  To open a
  16. file or folder, double click.   When a file is opened, a window opens listing
  17. all the types of resources contained in that file.  By doubleclicking on a
  18. resource type, a window is opened containing all the different resources
  19. of that type.
  20.  
  21. To change information about a resource, such as its name or ID, use the Get
  22. Info command.  
  23.  
  24. To copy resources, use the standard Copy-Paste commands.
  25.  
  26. So, open the file "DHDR's", and your Turbo application file.  You should find
  27. DHDR's called PasXCMD and PasXFCN in the file "DHDR's".  Copy each of these 
  28. and paste it into the Turbo file.  That's it.
  29.  
  30. To use XCMD's and XFCN's, copy the XCMD or XFCN resource from the file
  31. that Turbo creates, which will be named after the XCMD, to the appropriate
  32. stack.
  33.  
  34. Remember that all XCMD's and XFCN's are initially given an ID of 300.  That
  35. would normally mean that you couldn't have more than one in a given stack.
  36. The solution is to use the Get Info command in ResEdit to change the ID to
  37. a unique value.  The Get Info command will display the Name, ID and type of
  38. the resource, along with a lot of other information.  The name and ID can be
  39. change, using the standard mouse-dragging and typing technique.
  40.